<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>系统基本参数--layui后台管理模板</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/admin/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/admin/css/font_eolqem241z66flxr.css" media="all" />
    <script language="javascript" type="text/javascript" src="/admin/js/jquery.min.js"></script>
    <style type="text/css">
        .layui-table td, .layui-table th{ text-align: center; }
        .layui-table td{ padding:5px; }
        .childrenBody_menu { width: 100%; height: 30px; margin-top: 10px;}
        .childrenBody_menu a { display: inline-block; width: auto; background: #c3c3c3;  height: 30px; line-height: 30px; text-align: center; padding: 0 10px; color: #333;}
        .childrenBody_menu a.action { background: #249D80; color: #fff;}
        .childrenbody_content { width: 100%; height: 600px; border: 1px solid #eee; padding-top: 20px;}
        .form_con { display: none;}
        .children_meun { height: 30px; margin-bottom: 15px; text-align: right;}
        .children_meun a { display: inline-block; width: auto; color: #333; text-align: center;line-height: 30px; height: 30px; background: #eee; padding:0 10px; margin-right: 10px;}
    </style>
</head>
<body class="childrenBody">
<div class="children_meun">
    @foreach($menuchild as $m)
        <a href="{{$m['url']}}?meneid={{$m['parentid']}}">{{$m['menuname']}}</a>
    @endforeach
</div>
<div class="childrenBody_menu_title">
    主播分成收益
</div>
<div class="childrenBody_menu">
    <a href="javascript:;" class="action" id="tab_setting_1" onclick="SwapTab('setting','action','',4,1);">分成设置</a>
</div>
<div class="childrenbody_content">
    <div class="form_con" style="display: block;" id="div_setting_1">
        <form class="layui-form" action="__URL__/save_deduct/" method="post">
            <input type="hidden" name="id" value="1"></input>
            <div class="layui-form-item">
                <label class="layui-form-label">主播收益分成</label>
                <div class="layui-input-block">
                    <input type="text" name="emceededuct" placeholder="请输入" autocomplete="off" class="layui-input" value="{{$config['emceededuct']}}">
                </div>
            </div>
            <!--<div class="layui-form-item layui-form-text">
              <label class="layui-form-label">编辑器</label>
              <div class="layui-input-block">
                <textarea class="layui-textarea layui-hide" name="content" lay-verify="content" id="LAY_demo_editor"></textarea>
              </div>
            </div>-->
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
<script type="text/javascript" src="/admin/layui/layui.js"></script>
<script>
    function SwapTab(name,cls_show,cls_hide,cnt,cur){
        for(i=1;i<=cnt;i++){
            if(i==cur){
                $('#div_'+name+'_'+i).show();
                $('#tab_'+name+'_'+i).attr('class',cls_show);
            }else{
                $('#div_'+name+'_'+i).hide();
                $('#tab_'+name+'_'+i).attr('class',cls_hide);
            }
        }
    }
    layui.use('form', function(){
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

        //……

        //但是，如果你的HTML是动态生成的，自动渲染就会失效
        //因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
    });
</script>